package com.zzx.boot.entity.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author tan
 * @version 1.0
 * @date 2023/7/8 20:24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddPost {

    @NotNull(message = "文章内容不能为空")
    private String content;
    private List<String> images;// 图片集合
    @NotNull(message = "文章id不能为空")
    private Long postClassId;//文章分类id
    @NotNull(message = "isopen不能为空")
    private Integer isopen;//1开放 0仅自己可见

}
